#include "Border.h"

Border::Border(double length, BorderChecker checker)
    : length_m(length), checker_m(checker)
{
    return;
}

double Border::getLength() const
{
    return this->isValid() ? length_m : 0;
}

void Border::setLength(double length)
{
    length_m = length;
}

bool Border::isValid() const
{
    return checker_m.isValid(length_m);
}


